package com.smt.modules.bus.service;


import com.baomidou.mybatisplus.service.IService;
import com.smt.common.utils.R;
import com.smt.modules.bus.entity.InviteEntity;
import com.smt.modules.bus.entity.MemberUserEntity;
import com.smt.modules.bus.vo.request.JoinInvitesReq;

import javax.servlet.http.HttpServletRequest;

/**
 * 邀请用户
 *
 * @author zhangyi
 * @date 2018/10/16 11:43
 */
public interface InviteService extends IService<InviteEntity> {

    /**
     * 邀请用户
     *
     * @param type
     * @param contact
     * @param memberUserEntity
     * @param company
     * @param teamId
     * @return
     */
    R sendInvite(Integer type, String contact, MemberUserEntity memberUserEntity,Long company,Long teamId);


    /**
     * 确认邀请信息
     *
     * @param contact
     * @param type
     * @param formUser
     * @param teamId
     * @return
     */
    R enterInvite(String contact, Integer type, String formUser,Long teamId,Long iId);

    /**
     * 批量确认信息
     *
     * @param joinInvitesReq
     * @return
     */
    R enterInviteList(JoinInvitesReq joinInvitesReq);
}
